<?php
        require_once('../auth/auth.php');
?>

<html lang="en">

<head>	
<?php 
$page_title = $_SESSION['SESS_TITLE']." ".$_SESSION['SESS_LAST_NAME']."'s Profile";
include 'patientPortalTemplate.php' ?> 
</head>

<body>
	<section id="main" class="column">
<!--		
		<h4 class="alert_info">Welcome to the free MediaLoot admin panel template, this could be an informative message.</h4>
		<h4 class="alert_warning">A Warning Alert</h4>
		<h4 class="alert_error">An Error Message</h4>		
		<h4 class="alert_success">A Success Message</h4>
		
-->		
		<div class="clear"></div>
		
		<article class="module width_full">
			<header><h3>Profile Information</h3></header>
				<div class="module_content">
				<form name="addPatientForm" action="db/updateProfileDB.php" method="post">
						
						<fieldset style="width:99%;float:center margin-right: 3%;"> <!-- to make two field float next to one another, adjust values accordingly -->
							<label>Username</label>
							<input type="text" style="width:96.5%;background-color:transparent;border:" readonly="readonly" value="<?php echo $_SESSION['SESS_MEMBER_USERNAME']; ?>">
						</fieldset>
						
				<div class="clear"></div>
				
						<fieldset style="width:99%;float:center margin-right: 3%;"> <!-- to make two field float next to one another, adjust values accordingly -->
							<label>Title</label>
							<input type="text" style="width:96.5%;" value="<?php echo $_SESSION['SESS_TITLE']; ?>" name="title">
						</fieldset>
															
				<div class="clear"></div>
				
						<fieldset style="width:48%; float:left; margin-right: 3%;"> <!-- to make two field float next to one another, adjust values accordingly -->
							<label>First Name</label>
							<input type="text" style="width:92%;" value="<?php echo $_SESSION['SESS_FIRST_NAME']; ?>" name="firstname">
						</fieldset>
						
							<fieldset style="width:48%; float:left;"> <!-- to make two field float next to one another, adjust values accordingly -->												
							<label>Last Name</label>	
								<input type="text" style="width:92%;" value="<?php echo $_SESSION['SESS_LAST_NAME']; ?>" name="lastname">														
						</fieldset>
						



						
				<div class="clear"></div>
					
						<fieldset style="width:48%; float:left; margin-right: 3%;"> <!-- to make two field float next to one another, adjust values accordingly -->
							<label>Change Password</label>
							<input type="password" style="width:92%;" name="passwd1">
						</fieldset>
						<fieldset style="width:48%; float:left;"> <!-- to make two field float next to one another, adjust values accordingly -->
							<label>Confirm Changed Password</label>
							<input type="password" style="width:92%;" name="passwd2">
						</fieldset><div class="clear"></div>						

						<div class="clear"></div>
				</div>
			<footer>
				<div class="submit_link">
					<input type="submit" value="Update" class="alt_btn">
					<input type="reset" value="Clear">
				</div>
			</footer>
		</form>
		</article><!-- end of post new article -->

</body>

</html>
